<?php
include("code/databaseconnection.php");

include("header.php");
?>

<form id="form1" name="form1" method="post" action="district.php?action=save" >
  <table width="600" cellspacing="0" cellpadding="0">
	<tr>
      <td width="199">district </td>
      <td width="399"><input type="text" name="district" size="30"  /></td>
    </tr>
    
    <tr>
    <td>Description</td>
      <td><input type="text" name="description" size="30"/></td>
    </tr>
       
    
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="save" /></td>
    </tr>
    
  </table>

</form>

<?php
if($_GET['action']=="save")
{
	$g_district=$_POST['district'];
	$g_description=$_POST['description'];
	
	mysql_query(" INSERT INTO district (NAME_DISTRICT,DESCRIPTION) VALUES('$g_district','$g_description')  ");
	echo '<font color="#66CC00" size="+3" >Updated </font>';
}
?>
<?php 
include("fooder.php");
?>